{% extends "base.html" %}
{% block title %}Crear Solicitud De Cambio{% endblock %}
{% block body %}
  <h2>Crear Solicitud De Cambio</h2>
  {% if error %}<div class=error><strong>Error:</strong> {{ error }}</div>{% endif %}
  <form action="" method=post>
    <table>
        <tr>
            <td>(*) Descripción:</td>
            <td><textarea name=descripcion rows="5" cols="40" >{{ descripcion }}</textarea></td>
        </tr>
        <tr>
            <td>(*) Datos requeridos</td>
        </tr>
    </table>
      <table>
          <TR>
              <TD>Seleccionar</TD>
              <TD>Nombre</TD>
              <TD>Descripci&oacute;n</TD>
              <TD>Observaci&oacute;n</TD>
              <TD>Version</TD>
              <TD>Costo</TD>
              <TD>Fase</TD>
              <TD>Tipo</TD>
              <TD>Impacto Izq.</TD>
              <TD>Impacto Der.</TD>
              <TD>Impacto Tot.</TD>
          </TR>
          {% for item in items %}
          <TR>
                <td><input type=checkbox name=seleccionados {% if item.marcado == 'True' %} checked {% endif %} value={{item.id}} ></td>
                <TD class="c1">{{item.nombre}}</TD>
                <TD class="c2">{{item.descripcion}}</TD>
                <TD class="c3">{{item.observacion}}</TD>
                <TD class="c4">{{item.version}}</TD>
                <TD class="c5">{{item.costo}}</TD>
                <TD class="c6">{{item.fase}}</TD>
                <TD class="c7">{{item.tipo_item}}</TD>
                <TD class="c8">{{item.calc_izq}}</TD>
                <TD class="c9">{{item.calc_der}}</TD>
                <TD class="c10">{{item.calc_tot}}</TD>
          </TR>
          {% endfor %}
      </table>
     <table>
          <TR>
              <TD><input type=submit name="action" value='Guardar'></TD>
              <TD><button type=submit name="action" value=Salir onclick="return confirm('Los datos no serán almacenados');">Cancelar</button></TD>
          </TR>
      </table>
      <br>
    </form>
{% endblock %}
